<?php

namespace App\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use App\Models\User;

class ProcessPodcast implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

    /**
     * Create a new job instance.
     *
     * @return void
     */
    public $user;
    public function __construct(User $user)
    {
        \Log::info('任务队列开始 date'.date('Y-m-d H:i:s'));
        $this->user=$user;
    }

    /**
     * Execute the job.
     *
     * @return void
     */
    public function handle()
    {
        \Log::info('任务队列处理开始 date'.date('Y-m-d H:i:s'));
        \Log::info('任务队列处理数据 data'.json_encode($this->user));
        \Log::info('任务队列处理结束 date'.date('Y-m-d H:i:s'));
    }
}
